<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Lexical Playground App Demo</title>
    <link rel="stylesheet" href="./dist/style.css">
</head>
<body>
    <div id="app"></div>

    <!-- React dependencies -->
    <!-- <script crossorigin src="https://unpkg.com/react@18/umd/react.production.min.js"></script>
    <script crossorigin src="https://unpkg.com/react-dom@18/umd/react-dom.production.min.js"></script> -->


    <!-- React dependencies -->
    <script crossorigin src="./react/react.production.min.js"></script>
    <script crossorigin src="./react/react-dom.production.min.js"></script>
    
    <!-- Your packaged library -->
    <script src="./dist/lexical-playground-app.umd.js"></script>
    
    <script>
        // 直接挂载应用
        const mountFunction = window.LexicalPlaygroundApp.mountPlaygroundApp || 
                              window.LexicalPlaygroundApp.default?.mountPlaygroundApp;
        
        if (mountFunction) {
            mountFunction(document.getElementById('app'));
        }
    </script>
</body>
</html>
